package org.arpit.tutorial.shapes;

import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.shape.Line;
import javafx.stage.Stage;

public class LineDemo extends Application{
	public static void main(String[] args) {
		Application.launch(args);
	}

	@Override
	public void start(Stage primaryStage) {
		primaryStage.setTitle("Shapes Demo");
		Group vbox = new Group();
		
		Scene scene = new Scene(vbox, 600, 600);
		
		//--------------------------------------------------------------------------
		Label label = new Label("Shapes Demo");
		label.setTranslateY(150);
		
		Line line = new Line();
		line.setStartX(0.0f);
		line.setStartY(0.0f);
		line.setEndX(100.0f);
		line.setEndY(100.0f);
		
		Line line1 = new Line();
		line1.setStartX(100.0f);
		line1.setStartY(100.0f);
		line1.setEndX(200.0f);
		line1.setEndY(0.0f);
		
		
		
		vbox.getChildren().addAll(label, line, line1);
		
		//--------------------------------------------------------------------------
		
		primaryStage.setScene(scene);
		primaryStage.show();
	}

}

